<?php
/**
 * Simple MediaWiki client PHP class. just to get the idea, for now all is done in JS anyway
 *
 * @author Adrian 'ADi' Wieczorek
 * @version 1.0
 *
 */
class MediaWikiClient {
	protected $wikiUrl;

	public function __construct( $wikiUrl ) {
		$this->wikiUrl = $wikiUrl;
	}

	public function getArticle( $title, $action = 'render' ) {
		return file_get_contents( $this->wikiUrl . '?title=' . $title . '&action=' . $action );
	}

}
